<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>

    window.onresize = function () {
        //检测电脑屏幕分辨率的
        document.title = window.screen.width + "    "+ window.screen.height;
    }


</script>
</body>
</html>